﻿@model ITProject.WebUI.Models.ProjectUser.ListRPUViewModel
@{
    ViewBag.Title = "ProjectFeatures";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="Pmenu">
    @Html.Partial(MVC.Shared.Views.Partials._ProjectMenuControl,
        new ITProject.WebUI.Models.Project.ProjectMenuViewModel { ProjectName = (string)ViewData["ProjectName"], Role = (ITProject.Domain.UserRole)ViewData["Role"] })
</div>

<div class="PAmenu">
@Html.Partial(MVC.Shared.Views.Partials._ProjectUserMenu, new List<string> { "R", ViewData["ProjectName"].ToString() })
@*@Html.ActionLink("Zarządzaj użytkownikami",MVC.ProjectAdmin.ActionNames.ManageTeam, MVC.ProjectAdmin.Name, new { projectName = Model }, null)*@
</div>
<div class="PAplane">
    <div>
        <table id="repTable" class="inbox">
            <tr>
                <td class="label">
                    Data
                </td>
                <td class="label">
                    Typ operacji
                </td>
                <td class="label">
                    Opis
                </td>
                <td class="label">
                    Nazwa pliku
                </td>
            </tr>
            @foreach (var item in Model.repositorEntries)
            { 
                <tr>
                    <td class="edit">@item.CreateDate
                    </td>
                    <td class="edit">
                        @switch (item.Type)
                        {
                            case (int)ITProject.Domain.Enums.SVNOperation.CHECKOUT:
                            @:Checkout
                        break;
                            case (int)ITProject.Domain.Enums.SVNOperation.ADD:
                            @:Dodał plik
                        break;
                            case (int)ITProject.Domain.Enums.SVNOperation.COMMIT:
                            @:Commit
                        break;
                        }
                    </td>
                    <td class="edit">
                        @item.Description
                    </td>
                    <td class="edit">
                        @item.Filename
                    </td>
                </tr>
            }
        </table>
    </div>
</div>
<div class="clear">
</div>
